names = ['小红','张三','李四','王五','王五','王五']
renames = {}
for name in names:
    key_list = renames.keys()
    if name in key_list:
        renames[name] += 1
    else:
        renames[name] = 1
name_dict = sorted(renames.items(),key=lambda item:item[1],reverse=True)
print(name_dict)
print(name_dict[0])
